<?php
$toolbar    =new ToolBarHelper($act);
$toolbar->setSubmitAjax(true);
if($act=="add" )
{
    $toolbar->SetTitle('[Add Account]');
    $toolbar->Back(getUrlBack());
    $toolbar->Save();
}
else if($act=="edit")
{
    $toolbar->SetTitle('[Edit Account]');
    $toolbar->Back(getUrlBack());
    $toolbar->Apply();
    $toolbar->Save();
}
else if($act=="myaccount")
{
    $toolbar->setTitle("My Account",true);
    $toolbar->Save();
}
else
{
    $toolbar->setSubmitAjax(false);
    //$toolbar->Delete();
    $toolbar->Apply();
    $toolbar->addUser('add','Add User','id='.$id);
}
?>